webpack2 1.安装 使用淘宝镜像,将webpack安装到全局 $ cnpm install webpack -g 查看webpack版本 $ webpack -v 在项目中安装, $ cnpm i ...